package org.study.tk.boot.mappercustome;

import org.apache.ibatis.annotations.UpdateProvider;

import java.util.List;

/**
 * 通用 Mapper 接口，根据主键 id 选择性批量更新
 *
 * @author Administrator
 */
public interface BatchUpdateByIdsSelectiveMapper<T> {
    /**
     * 根据主键 id 选择性批量更新
     *
     * @param recordList
     * @return int
     */
    @UpdateProvider(type = BatchUpdateProvider.class, method = "dynamicSQL")
    int batchUpdateSelective(List<T> recordList);
}